package com.kssoft.ebd;

import com.kssoft.ebd.spider.pool.WebDriverPool;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableAsync(proxyTargetClass = true)
@SpringBootApplication
@EnableScheduling
public class SpiderNaXiApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpiderNaXiApplication.class, args);
    }

    @Bean
    public WebDriverPool getWebDriverPool() {
        return new WebDriverPool();
    }
}
